package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/7/5 16:55
 * @Describe    :
 */
@Parcelize
class MerchantStoresInfoResponse(

    var id: Int = 0,
    var shopPicId: Int = 0,
    var shopPicUrl: String = "",
    var shopName: String = "",
    var contactPerson: String = "",
    var contactPhone: String = "",
    var address: String = "",
    var addressDetail: String = "",
    var createdAt: String = "",
    var rate: Int = 0,
    var list: ArrayList<ListData> = arrayListOf()

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListData(

        var id: Int = 0,
        var goodImg: String = "",
        var goodName: String = "",
        var showPrice: Double = 0.00,
        var salePrice: Double = 0.00,
        var soldNum: Int = 0

    ) : Parcelable
}